<?php
/*
 * program:	均源
 * author:	雨中漫步 & 上善若水 & qhxin
 * email:	qhxin@qhxin.com
 * date:	2014/11/11
 * description:	又是一年双十一，不能剁手，就写点东西吧~~~~~~
 */

defined('IN_APP') or die();

//本配置文件路径
define('CONFIG_PATH', str_replace('\\', '/', dirname(__FILE__)). '/');

/********************************
 * 应用相关常量设置				*
 *******************************/
define('CONFIG_APP_HOST','{{{CONFIG_APP_HOST}}}');//域名或IP

/********************************
 * 时区相关常量设置				*
 *******************************/
define('CONFIG_TIMEOFFSET','+8');//时区设置，默认+8时区

/********************************
 * CACHE相关常量设置			*
 *******************************/
define('CONFIG_MM_CACHE_OPEN',FALSE);//缓存是否开启。缓存仅开一种即可

define('CONFIG_MEMCACHE_OPEN',FALSE);//MEMCACHE开关
if(CONFIG_MEMCACHE_OPEN) {
	define('CONFIG_MEMCACHE_HOST','');//MEMCACHE主机
	define('CONFIG_MEMCACHE_PORT','');//MEMCACHE端口
	define('CONFIG_MEMCACHE_MULTI','');//MULTI
}

define('CONFIG_CACHE_REDIS_OPEN',FALSE);//REDIS开关
if(CONFIG_CACHE_REDIS_OPEN) {
	define('CONFIG_CACHE_REDIS_HOST','');//REDIS主机
	define('CONFIG_CACHE_REDIS_PORT','');//REDIS端口
}
/********************************
 * 数据库相关常量设置			*
 *******************************/
define('CONFIG_DB_MYSQL_OPEN',FALSE);//MYSQL开关
define('CONFIG_DB_PDO_MYSQL_OPEN',TRUE);//PDO_MYSQL开关
define('CONFIG_DB_MONGODB_OPEN',FALSE);//MONGODB开关

/********************************
 * 内部通信验证密钥				*
 *******************************/
define('CONFIG_CS_KEY','{{{CONFIG_CS_KEY}}}');

/********************************
 * 应用配置						*
 *******************************/
define('CONFIG_APPDB_CHARSET','utf8');
define('CONFIG_APPDB_ENGINE','MyISAM');
define('CONFIG_APPDB_PRE','{{{CONFIG_APPDB_PRE}}}');
define('CONFIG_APPDB_MASTER_HOST','{{{CONFIG_APPDB_MASTER_HOST}}}');
define('CONFIG_APPDB_MASTER_NAME','{{{CONFIG_APPDB_MASTER_NAME}}}');
define('CONFIG_APPDB_MASTER_USER','{{{CONFIG_APPDB_MASTER_USER}}}');
define('CONFIG_APPDB_MASTER_PASS','{{{CONFIG_APPDB_MASTER_PASS}}}');

/********************************
 * 主从数据库配置				*
 *******************************/
define('CONFIG_APPDB_SLAVES_HOST','');
define('CONFIG_APPDB_SLAVES_NAME','');
define('CONFIG_APPDB_SLAVES_USER','');
define('CONFIG_APPDB_SLAVES_PASS','');
define('CONFIG_APPDB_ARBITER_HOST','');
define('CONFIG_APPDB_ARBITER_NAME','');
define('CONFIG_APPDB_ARBITER_USER','');
define('CONFIG_APPDB_ARBITER_PASS','');

/********************************
 * 其他配置						*
 *******************************/
defined('CONFIG_CTR_PATH') or define('CONFIG_CTR_PATH', IN_APP. 'jy_control/');
defined('CONFIG_MOD_PATH') or define('CONFIG_MOD_PATH', IN_APP. 'jy_model/');
defined('CONFIG_TPL_PATH') or define('CONFIG_TPL_PATH', IN_APP. 'jy_pages/template/');
defined('CONFIG_TPL_CATH') or define('CONFIG_TPL_CATH', IN_APP. 'jy_pages/cache/');
defined('CONFIG_PLG_PATH') or define('CONFIG_PLG_PATH', IN_APP. 'jy_plugin/' );
defined('CONFIG_UPS_PATH') or define('CONFIG_UPS_PATH', 'jy_uploads/' );
defined('CONFIG_HPO_PATH') or define('CONFIG_HPO_PATH', 'jy_uploads/headphoto/' );
defined('CONFIG_THU_PATH') or define('CONFIG_THU_PATH', 'jy_uploads/thumbnail/' );

define('CONFIG_COOKIE_PRE', '{{{CONFIG_COOKIE_PRE}}}');
define('CONFIG_COOKIE_TIME', {{{CONFIG_COOKIE_TIME}}});
define('CONFIG_ONLINE_TIME', {{{CONFIG_ONLINE_TIME}}});
define('CONFIG_JY_VERSION', '1.0');
define('CONFIG_INSTALLED', 0);
define('USER_KEY', '{{{USER_KEY}}}');

?>